/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"653F016A-CBED-47DE-9E86-3B93A9ABEFA9"}
 */
var fDescripcion = null;

/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"55E637D5-713A-4E53-8F27-380241896A76"}
 */
var fSolucion = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"1B8ABB78-5967-4327-81A6-4354B44B6FB0"}
 */
function iraDtl(event) {
	forms.param_app_dtl.controller.show()
	//globals.mostrarForm('param_app_dtl');
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"EC8F9D94-5FFE-4472-9741-4BD0F9CF603A"}
 */
function pasaraUsuario(event) {
	databaseManager.setAutoSave(false)
	/** @type {JSFoundSet<db:/fwk_navigation_infocom/param_usr>}*/
	var $fs = databaseManager.getFoundSet('fwk_navigation_infocom','param_usr')
	var $rcd_1 = $fs.getRecord($fs.newRecord())
	$rcd_1.userv_id = globals.gUservID
	if (databaseManager.copyMatchingFields(foundset.getRecord(foundset.getSelectedIndex()),$rcd_1))
	{
		databaseManager.startTransaction()
		if (databaseManager.saveData())
		{
			controller.deleteRecord()
			databaseManager.commitTransaction()
		}
		else
		{
			databaseManager.rollbackTransaction()
		}
		
	}
	else
	{
		globals.DIALOGS.showWarningDialog('Aviso','Error al pasar variable','OK')
	}
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"8A76E8B4-954D-4F61-8EFE-1B9010DB874D"}
 * @AllowToRunInFind
 */
function buscar(event) {
	controller.find()
	
	solucion = fSolucion
	descripcion_corta = '%' + utils.stringTrim(fDescripcion) + '%'
	
	controller.search()
}
